package com.chare.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author shi
 * @since 2022-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false,of ="name")   //callSuper=false 的作用是只比较子类的属性值，不比较父类的属性值，true的作用是比较父子类的属性值,of是给那个属性重写hashcode和equals
@TableName("t_politics_status")
@ApiModel(value="PoliticsStatus对象", description="")
public class PoliticsStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Excel(name = "政治面貌")
    @ApiModelProperty(value = "政治面貌")
    private String name;

    public PoliticsStatus(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public PoliticsStatus(String name) {
    }

    public PoliticsStatus() {
    }
}
